#ifndef MODELWORDTRANLATION_H
#define MODELWORDTRANLATION_H

#include <QObject>
#include "listmodel.h"

class IfaceItemModel : public ListItem
{
  Q_OBJECT

public:
  enum Roles {
    IfaceNameRole = Qt::UserRole+1,
    IfacePictureRole
  };

public:
  IfaceItemModel(QObject *parent = 0): ListItem(parent) {}
  explicit IfaceItemModel( const QString &iface, const QString &picture, QObject *parent = 0 );
  QVariant data(int role) const;
  QHash<int, QByteArray> roleNames() const;

  void setIfaceName( QString &iface );
  void setIfacePicture( QString &picture );

  inline QString ifaceName() const { return m_iface_name; }
  inline QString ifacePicture() const { return m_iface_picture; }

private:
  QString m_iface_name;
  QString m_iface_picture;
};

#endif // MODELWORDTRANLATION_H
